package com.hopes.bizz.enforcement.common.service;

import com.hopes.bizz.enforcement.hid.mapper.RiskHidCheckListConfigMapper;
import com.hopes.bizz.enforcement.hid.mapper.RiskHidCheckPlanMapper;
import com.hopes.bizz.enforcement.integral.mapper.RiskIntegralExchangeMapper;
import com.hopes.bizz.enforcement.integral.mapper.EnfIntegralGoodsMapper;
import com.hopes.boss.admin.api.entity.SysDictItem;
import com.hopes.boss.common.service.TableDictService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author daijie
 * @version 1.0
 * @date 2023/7/18 16:51
 * @Description:
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class EnforcementDictServiceImpl implements TableDictService {


    private final EnfIntegralGoodsMapper enfIntegralGoodsMapper;

    private final RiskIntegralExchangeMapper riskIntegralExchangeMapper;

    private final RiskHidCheckListConfigMapper riskHidCheckListConfigMapper;

    private final RiskHidCheckPlanMapper riskHidCheckPlanMapper;

    public List<SysDictItem> riskIntegralGoodsMapper() {
        return enfIntegralGoodsMapper.labelValueList();
    }

    public List<SysDictItem> queryEventAndValueAsLabelValue() {
        return riskIntegralExchangeMapper.labelValueList();
    }

    public List<SysDictItem> listRiskHidCheckListAsDict() {
        return riskHidCheckListConfigMapper.labelValueList();
    }

    public List<SysDictItem> listRiskHidCheckListPlanAsDict() {
        return riskHidCheckPlanMapper.labelValueList();
    }
}
